package data.dto;

import java.math.*;
import java.sql.Timestamp;
import java.text.DecimalFormat;
import java.util.*;

public class userTypeDTO {
	private Short id;
	private String name;
	private Short annualLeave;
	private Short medicalLeave;
	private double compensationLeave;
	private int createdBy;
	private Timestamp createdOn;
	private int modifiedBy;
	private Timestamp modifiedOn;
	private Short status;
	public String userRank;

	public userTypeDTO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public userTypeDTO(Short id, String name, Short annualLeave,
			Short medicalLeave, double compensationLeave, int createdBy,
			Timestamp createdOn, int modifiedBy, Timestamp modifiedOn,
			Short status, String userRank) {
		super();
		this.id = id;
		this.name = name;
		this.annualLeave = annualLeave;
		this.medicalLeave = medicalLeave;
		this.compensationLeave = compensationLeave;
		this.createdBy = createdBy;
		this.createdOn = createdOn;
		this.modifiedBy = modifiedBy;
		this.modifiedOn = modifiedOn;
		this.status = status;
		this.userRank = userRank;
	}

	public String getUserRank() {
		return userRank;
	}

	public void setUserRank(String userRank) {
		this.userRank = userRank;
	}

	public Short getId() {
		return id;
	}

	public void setId(Short id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Short getAnnualLeave() {
		return annualLeave;
	}

	public void setAnnualLeave(Short annualLeave) {
		this.annualLeave = annualLeave;
	}

	public Short getMedicalLeave() {
		return medicalLeave;
	}

	public void setMedicalLeave(Short medicalLeave) {
		this.medicalLeave = medicalLeave;
	}

	public double getCompensationLeave() {
		return Double.parseDouble(new DecimalFormat("#.0").format(compensationLeave));
	}

	public void setCompensationLeave(double compensationLeave) {
		this.compensationLeave = compensationLeave;
	}

	public int getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(int createdBy) {
		this.createdBy = createdBy;
	}

	public Timestamp getCreatedOn() {
		return createdOn;
	}

	public void setCreatedOn(Timestamp createdOn) {
		this.createdOn = createdOn;
	}

	public int getModifiedBy() {
		return modifiedBy;
	}

	public void setModifiedBy(int modifiedBy) {
		this.modifiedBy = modifiedBy;
	}

	public Timestamp getModifiedOn() {
		return modifiedOn;
	}

	public void setModifiedOn(Timestamp modifiedOn) {
		this.modifiedOn = modifiedOn;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "userTypeDTO [id=" + id + ", name=" + name + ", annualLeave="
				+ annualLeave + ", medicalLeave=" + medicalLeave
				+ ", compensationLeave=" + compensationLeave + ", createdBy="
				+ createdBy + ", createdOn=" + createdOn + ", modifiedBy="
				+ modifiedBy + ", modifiedOn=" + modifiedOn + ", status="
				+ status + ", userRank=" + userRank + "]";
	}

}
